<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of formatdate_helper
 *
 * @author Admin
 */
//put your code here
if (!function_exists('format')) {
    function format($date) 
    {
        $new_date = date_create($date);
        return date_format($new_date, 'd-m-Y h:i:s');
    }
}


